<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/',function(){
    return view('welcome');
});

/*
|--------------------------------------------------------------------------
| 用户登录相关
|--------------------------------------------------------------------------
|
| 登录、注册、忘记密码
|
*/
Route::auth();

/*
|--------------------------------------------------------------------------
| 用户登录后进入的主页
|--------------------------------------------------------------------------
|
| 需要登录后才能进入，使用了middleware-->auth
|
*/
Route::get('/home', 'HomeController@index');

/*
|--------------------------------------------------------------------------
| Repyd学习实例
|--------------------------------------------------------------------------
|
| Admin Service Provider Demo
|
*/
Route::controller('rapyd-demo','\Zofe\Rapyd\Demo\DemoController');
/*
|--------------------------------------------------------------------------
| 无限分类测试
|-------------------------------------------------------------------------
*/
Route::get('demo', 'DemoController@index');
